package com.ruoyi.tranShort.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tranShort.mapper.ShortSchedulingPersonMapper;
import com.ruoyi.tranShort.domain.ShortSchedulingPerson;
import com.ruoyi.tranShort.service.IShortSchedulingPersonService;

/**
 * 排班明细人员Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-08-14
 */
@Service
public class ShortSchedulingPersonServiceImpl implements IShortSchedulingPersonService 
{
    @Autowired
    private ShortSchedulingPersonMapper shortSchedulingPersonMapper;

    /**
     * 查询排班明细人员
     * 
     * @param id 排班明细人员主键
     * @return 排班明细人员
     */
    @Override
    public ShortSchedulingPerson selectShortSchedulingPersonById(Long id)
    {
        return shortSchedulingPersonMapper.selectShortSchedulingPersonById(id);
    }

    /**
     * 查询排班明细人员列表
     * 
     * @param shortSchedulingPerson 排班明细人员
     * @return 排班明细人员
     */
    @Override
    public List<ShortSchedulingPerson> selectShortSchedulingPersonList(ShortSchedulingPerson shortSchedulingPerson)
    {
        return shortSchedulingPersonMapper.selectShortSchedulingPersonList(shortSchedulingPerson);
    }

    /**
     * 新增排班明细人员
     * 
     * @param shortSchedulingPerson 排班明细人员
     * @return 结果
     */
    @Override
    public int insertShortSchedulingPerson(ShortSchedulingPerson shortSchedulingPerson)
    {
        return shortSchedulingPersonMapper.insertShortSchedulingPerson(shortSchedulingPerson);
    }

    /**
     * 修改排班明细人员
     * 
     * @param shortSchedulingPerson 排班明细人员
     * @return 结果
     */
    @Override
    public int updateShortSchedulingPerson(ShortSchedulingPerson shortSchedulingPerson)
    {
        return shortSchedulingPersonMapper.updateShortSchedulingPerson(shortSchedulingPerson);
    }

    /**
     * 批量删除排班明细人员
     * 
     * @param ids 需要删除的排班明细人员主键
     * @return 结果
     */
    @Override
    public int deleteShortSchedulingPersonByIds(Long[] ids)
    {
        return shortSchedulingPersonMapper.deleteShortSchedulingPersonByIds(ids);
    }

    /**
     * 删除排班明细人员信息
     * 
     * @param id 排班明细人员主键
     * @return 结果
     */
    @Override
    public int deleteShortSchedulingPersonById(Long id)
    {
        return shortSchedulingPersonMapper.deleteShortSchedulingPersonById(id);
    }
}
